package com.train.trainmanage.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.train.trainmanage.mapper.ComeGoDirectionModelMapper;
import com.train.trainmanage.model.ComeGoDirectionModel;
import com.train.trainmanage.service.ComeGoDirectionService;

@Service
public class ComeGoDirectionServiceImpl implements ComeGoDirectionService{
	
	@Autowired
	private ComeGoDirectionModelMapper comeGoMapper;
	
	@Override
	public List<ComeGoDirectionModel> listByType(Integer type) {
		
		return comeGoMapper.listByType(type);
	}

	@Override
	public ComeGoDirectionModel getByDirecid(Integer direcId) {
		return comeGoMapper.selectByPrimaryKey(direcId);
	}

	@Override
	public List<ComeGoDirectionModel> listByIdS(List<Integer> ids) {
		List<ComeGoDirectionModel> result = comeGoMapper.listByIds(ids);
		return result;
	}

}
